package com.aviation.sell_ticket.service;

import org.springframework.amqp.core.Message;
import org.springframework.web.servlet.mvc.support.RedirectAttributes;

import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;

public interface OrderService {

    public Map<String,Object> orderGenerated(String mailbox, List<Map<String,String>> passengerList,List<Map<String,Object>> flightsList,String userId,List<String> citys) throws Exception;

    public void changeOrderStatus(Message msg);

    public Map<String,Object> extractOrder(String userId);

    public Map<String,Object> orderingInformation(String userId, String orderId);

    public Map<String,Object> orderStatus(String userId, String orderId);

    public Map<String,Object> orderPay(String userId, String orderId);

    public String paymentCallback(HttpServletRequest request);

    public Map<String,Object> returnTicket(String userId,String orderId);

}
